package cn.clq.ymcc.constants;

/**
 * @author clqlongbao
 * @version 1.0
 * @description: 异常码及其对应异常信息
 * @date 2022/7/15 10:45
 */
public enum GlobalErrorEnum {
    SYSTEM_ERROR("5000","服务器繁忙，请稍后再试"),
    SERVICE_REFUSE("5001","服务暂时无法使用");

    /**
     * 错误码
     */
    private String code;

    /**
     * 错误描述
     */
    private String message;

    GlobalErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
